package me.keiwu.log.controller.rpc;

import me.keiwu.log.service.LogErrorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by kei on 29/12/2017.
 */
@RestController
@RequestMapping("/rpc/log/log")
public class ErrorRpcController {


    @Autowired
    private LogErrorService logErrorService;

    @RequestMapping("/error")
    public void logError(String requestUri, String localIp, String className, String func, String message) {
        logErrorService.logError(requestUri, localIp, className, func, message);
    }

}
